package com.qidianit.mes.pro.controller;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Bom;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pro.service.BomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ Description:
 * @ Author:WuJingLei
 * @ Date: 2025/9/23 -17:15
 */
@RestController
@RequestMapping("/bom")
public class BomController {
    @Autowired
    private BomService bomService;

    @GetMapping("/page")
    private Result<PageInfo<Bom>> page(Long id,
                                       @RequestParam(defaultValue = "1")int pageNum,
                                       @RequestParam(defaultValue = "3")int size){
        return bomService.queryByParentId(id,pageNum,size);

    }
}
